package com.fr.plugins.flowchart.base;

import com.fr.stable.StringUtils;

public class FlowNode {
	private String code;//节点序列
	private String type;//节点类型
	private String hyperlink;//超链接
	private String displayContent;//显示内容
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getHyperlink() {
		return hyperlink;
	}
	public void setHyperlink(String hyperlink) {
		this.hyperlink = hyperlink;
	}
	public String getDisplayContent() {
		return displayContent;
	}
	public void setDisplayContent(String displayContent) {
		this.displayContent = displayContent;
	}
	@Override
	public String toString() {
		StringBuffer str = new StringBuffer();
		str.append(this.code).append("=>").append(this.type).append(this.displayContent);
		if(StringUtils.isEmpty(this.hyperlink)){
			str.append(":>").append(this.hyperlink);
		}
		return str.toString();
	}
}
